Basic Constants
You define the length of AppleTalk addresses and NBP name strings as well as identify wildcards used in NBP names by using the constants defined here. The NBP default zone is also defined here, although if you do not use any zone, Open Transport automatically defaults to * for you.The constant
kNBPEntityBufferSize
specifies the maximum size of the NBP name buffer, currently defined to be 105 bytes. This permits a NBP name string whose name, type, and zone fields each contain the maximum 32 characters, plus 2 bytes for the separator characters (: and @) and 7 bytes for an optional pad byte and 6 escape characters, which are indicated by the backslash (\) followed by a colon (:), at sign (@), or another backslash. (See "The NBP Address Structure" on page 10-17 and "The Combined DDP-NBP Address Structure" on page 10-17 for examples of its use.)
enum { kNBPMaxNameLength = 32, kNBPMaxTypeLength = 32, kNBPMaxZoneLength = 32, kNBPSlushLength = 9, /* Extra space for @,:,escape chars */ kNBPMaxEntityLength = (kNBPMaxNameLength + kNBPMaxTypeLength + kNBPMaxZoneLength + 3), kNBPEntityBufferSize = (kNBPMaxNameLength + kNBPMaxTypeLength + kNBPMaxZoneLength + kNBPSlushLength), kNBPWildCard = 0x3D,/* NBP name and type match anything '=' */ kNBPImbeddedWildCard = 0xC5,/* NBP name and type match some 'í' */ kNBPDefaultZone = 0x2A,/* NBP default zone '*' */ kZIPMaxZoneLength = kNBPMaxZoneLength, kDDPAddressLength = 8, kNBPAddressLength = kNBPEntityBufferSize, kAppleTalkAddressLength= kDDPAddressLength + kNBPEntityBufferSize };
Subtopics
- Address Format Constants
- The DDP Address Structure
- The NBP Address Structure
- The Combined DDP-NBP Address Structure
- The Multinode Address Structure
- The NBP Entity Structure